#include <stdio.h>
#include <signal.h>
#include <sys/time.h>

void print(int signo)
{
	printf("aaaa\n");
}

int main()
{
	signal(SIGALRM,print);
	struct itimerval timer;
	timer.it_interval.tv_sec = 1;
	timer.it_interval.tv_usec = 230000;
	timer.it_value.tv_sec = 5;
	timer.it_value.tv_usec = 0;
	setitimer(ITIMER_REAL,&timer,0);
	while(1);
}
